maxCoveredRows to 0 to keep track of the maximum number of rows covered.n is the number of columns.numSelect, skip to the next bitmask.maxCoveredRows with the maximum of its current value and the temporary count.maxCoveredRows as the final result.