AirAsia Interview Question

Data structure question