Binary Array Sorting Leetcode Two