Count Hills and Valleys in an Array - DSA Problem | Talentd