Question d’entretien chez Cognizant

java provided code decoding and explanation