longest non_increase, non_decrease sequence