Longest Parity-Step Streak

Company: INFOSYS

Difficulty: easy