codechef practice problem.