Infosys Interview Question

Reason for the change was asked