Harsh Bhardwaj's submission of Maximum Distance | CodeChef