Infosys interview question

Lamda function and oops concepts