Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate through each row and keep the count of ones.
Solve with full IDE support and test cases