Devesh Agarwal's submission of Divide and Rule | CodeChef