LeetCode
Monotonic Array
Click
here
for an explanation.