Pregunta de entrevista de Cognizant

What is this pseudocode doing?