I recently tried to solve `This problem on codechef. I am getting wrong answer. THere is the link to my solution can any one point out what is the mistake. This is solution only for subtask1.