HCLTech Interview Question

it was simple