Leetcode 3011: Find if Array Can Be Sorted