Shortest Streak Reaching the Target

Company: DevRev

Difficulty: hard