HCLTech Interview Question

the basic