Pregunta de entrevista de Flexport

Data structures/algorithms, around medium difficulty.