Infosys interview question

it was casual