Question d’entretien chez Tech Mahindra

One puzzle was given