Soluion of problem solved in Codechef