n-hexane has only London dispersion forces because it does not have any functional group.
1-pentanol has a chain that has London dispersion forces and a functional group -OH that can form a hydrogen bond.
Pentanal has a chain where London dispersion forces can occur and functional group -CHO where dipole-dipole forces may occur.
Butanoic acid can form hydrogen bond via a functional group -COOH as well as can form an additional hydrogen bond via the same functional group. Besides that, London disperse forcescan occur.
Hydrogen bonding is the strongest, then dipole-dipole forces and in the end, London disperse forces.
Therefore, the highest boiling point will have butanoic acid (1640C), then1-pentanol (1370C), then pentanal (1030C) and in the end n-hexane (690C).
Hence From the highest to the lowest boiling point: butanoic acid, 1-pentanol, pentanal and n-hexane.