ANUARM : help find WA

link to my solution:
http://www.codechef.com/viewsolution/6397057