Ionisation energy is the amount of energy required to remove the outermost electron from the isolated gaseous atom.
Li, B, C, O belong to the same period and the electrons are added to same shell.
Nuclear charge increases from Li to O and thus, the atomic size decreases. For electrostatic force - F∝q and F ∝ 1/r2.
This states that more energy is required to overcome greater magnitude of force.
Hence, ionisation energy follows the order: Li < B < C < O.