Dinesh Goyal's submission of Distances | CodeChef