HCLTech Interview Question

simple programming