Jaggu- The Saviour (Code Fury 3.0)

problem link: https://www.codechef.com/COFY2020/problems/GKSMNHM
Here’s my solution: https://www.codechef.com/viewsolution/37559650
Getting WA :frowning:

@aayushme are you sure about the test-cases of this problem??