結果 : check if reversing a subarray make the array sorted leetcode