Question d’entretien chez XYZ

java code that was asked