Pergunta de entrevista da empresa Uber

Based on graphs and data structures