Binary Array Sorting Leetcode Solutions