HCLTech Interview Question

It was easy to clear