HCLTech Interview Question

Difficulty level medium