LeetCode
Maximum Number of Ones
Click
here
for an explanation.