Problem Code: CHEFEZQ

Please tell me why my answer is partially correct. It would be very helpful
Solution: https://www.codechef.com/viewsolution/40349941