Devesh Agarwal's submission of Art of Balance | CodeChef