The correct order of +M effect of 'N' containing functional group on benzene ring amongst the given compounds is:

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA
The +M (mesomeric) effect refers to electron donation via resonance. Nitrogen groups donate electrons if they have a lone pair, but the donation strength depends on how attached atoms affect that lone pair's availability.
Key order: (i, strong) > (ii) > (iv, no lone pair) > (iii, electron-withdrawing).
Final answer: i > ii > iv > iii