ROTATION sept 14-Getting WA

http://www.codechef.com/viewsolution/4827265

//