A mountain array is valid only if it climbs strictly to a single peak and then descends strictly to the end. Walking forward while the values increase finds the peak,...