Solutions to the codechef problems