Cognizant interview question

What is this pseudocode doing?