https://mixrolikus.cc/video/XG_DSLGjO4o/leetcode-2210-count-hills-and-valleys-in-an-array