WRONG ANSWER IN CARVANS

My solution is https://www.codechef.com/viewsolution/29123795