Rosetta Problems

Count Hills and Valleys in an Array

https://leetcode.com/problems/count-hills-and-valleys-in-an-array