Row with max 1s
Given a boolean 2D array, consisting of only 1’s and 0’s, where each row is sorted. Return the 0-based index of the first row that has the most number of 1s. If no such row exists, return -1.
Examples:
Input: arr[][] = [[0, 1, 1, 1],
...