Smallest Elements by Parity

Company: Infosys_11sep

Difficulty: easy