Vibhav Aggarwal's submission of Double Distance Query | CodeChef