American Airlines Interview Question

How to make code scalable and maintainable