Problem 3285 · Easy
A mountain at index i is stable when the mountain just before it is taller than the threshold.
Open the interactive visualisation