United Airlines Interview Question

Evrerything is pretty straight-forward