Cognizant Interview Question

java provided code decoding and explanation