Leetcode Check If The Array Is Sorted