Length of a valley

Problem Name:
Length of a valley
Site:HackerEarth
Links:
Tags:
Problem setters: