Approach hintTry it first, then revealHide
Track the length of the current non-decreasing run, extending it when a[i] >= a[i - 1] and restarting it otherwise, and keep the longest run seen.
Track the length of the current non-decreasing run, extending it when a[i] >= a[i - 1] and restarting it otherwise, and keep the longest run seen.