Tiancheng Lou's submission of Maximum Distance | CodeChef