Infosys Interview Question

Behaviour question