The IUPAC name I came up with was 1-hydroxy-4-methyl-3-pentanone because:
Ketone has higher priority over alcohol
The lowest locant set is achieved by numbering the C bonded to -OH group as 1.
But the answer given states it is 4-methyl-3-oxo-1-pentanol which violates the first rule mentioned above.
Please clarify the discrepancy between my reasoning and the textbook answer.