United Airlines interview question

Interpreting psuedocode on the computer programming test.