Yash Chandnani's submission of Maximum Distance | CodeChef