Infosys Interview Question

Lamda function and oops concepts