aman agarwal's submission of Distances | CodeChef