Domanda di colloquio di Flight Network

question from coding, data structure