United Airlines Interview Question

Interpreting psuedocode on the computer programming test.