Problem 2951 · Easy
Scan the interior of the array and keep each index strictly greater than both neighbours.
Open the interactive visualisation