Maximize Ones in a Binary String

Company: Microsoft

Difficulty: easy