Problem 3830 · Hard
Try each single deletion and track the longest run where the up and down steps alternate.
Open the interactive visualisation