COLARR:Getting wrong answer

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