SUP’TIC 21 Solution (MATHS ONLY)