American Airlines interview question

Nothing too challenging, just a lot of basic Java knowledge.