Which of the following stars has the hottest core?

Group of answer choices

a red giant ( rst phase - not an AGB star)

a main sequence K star

a main-sequence O star

a yellow giant (horizontal branch star)

The main-sequence O star has the hottest core among the given options.