KLM interview question

Implementing a ticketing system and calculating itineraries