Devesh Agarwal's submission of Max Range Queries | CodeChef