Rohit Goyal's submission of Maximum Distance | CodeChef