L&T Technology Services Interview Question

Few programming logic