Pergunta de entrevista da empresa Flexport

Data structures/algorithms, around medium difficulty.