fadhel's submission of Optimal Trip | CodeChef