solution to codechef questions