Solution to Codechef Problems