American Airlines interview question

How to make code scalable and maintainable