Leetcode 2210. Count Hills and Valleys in an Array | Hello Interview