Shivam's submission of Distances | CodeChef