Solutions to codechef problems