Topic: Array Problem / Level: beginner

Problem: Find the number of elements in an array that are smaller than both their neighbors.

Run the code to see the output here...