Minimize the Longest Consecutive Run

Company: Visa_20aug

Difficulty: medium