ROTATION sept 14-Getting WA

rotation

#1

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