American Airlines interview question

1. Write a code to create Custom Exception? 2. Data structure 3. Design pattern