solution to problems of codechef.