Cognizant Interview Question

What is this pseudocode doing?