Similar Parity Integers in a Range

Company: Dream11

Difficulty: hard