Flip and Count Ones

Company: Databrick

Difficulty: medium