Count 1s In A Sorted Binary Array Leetcode