Given an integer array nums, find a continuous subarray which, if sorted in non-decreasing order, would make the entire array sorted in non-decreasing order. Return the length of the shortest such subarray.
Click Run to execute sample tests.