solved codechef feb challenge#2