Find if Array Can Be Sorted | Leetcode 3011