Question d’entretien chez Infosys

Coding question it was tricky