solved codechef problem