Amadeus interview question

Basic Linux regular expression questions.