Solutions for Codechef problems