WA in UCL || PLEASE HELP ME||

https://www.codechef.com/viewsolution/34152165

tough 1 ik