As we have learnt,
Ionisation energy increases along a period on moving from left to right. However, species having fully-filled or half-filled orbital configurations have greater ionisation energy than the element on their right.
So, Mg, Al, P and S can be arranged as
Al < Mg < S < P
Hence, the correct answer is option (3).
Study 40% syllabus and score up to 100% marks in JEE