Jash's submission of Dual Distance | CodeChef