CODECHEF STARTER 109 DIV(2) PROBLEM A,B,C,D SOLUTION