my soln gives wrong ans to the problem: WALK Problem - CodeChef
my code: code.txt - Google Drive
Consider the test input:
1 10 1 1 1 1 1 1 1 1 1 1
Brilliant ! Allon-sy ! Geronimo !