Pergunta de entrevista da empresa Moovit

leetcode question about data structures