give integer array arr remove subarray arr remain element arr nondecreasingReturn length short subarray removeA subarray contiguous subsequence array Example 1input arr 123104235output 3explanation the short subarray remove 1042 length 3 the remain element 12335 sortedanother correct solution remove subarray 3104example 2input arr 54321output 4explanation since array strictly decrease single element therefore need remove subarray length 4 5432 4321example 3input arr 123output 0explanation the array nondecrease we need remove element Constraints1 arrlength 1050 arri 109