Find If Array Can Be Sorted Leetcode Contest Sunday