Triphenylmethane (I) is acidic because its conjugate base is stabilised by resonance.
Cyclopentadiene (IV) is acidic because its conjugate base is aromatic.
Nitrobenzene is more acidic than benzene because nitro group is electron withdrawing. It will stabilise the conjugate base of benzene by - I effect.
The correct order of acidity of the given compounds is IV>V>I>II>III.