Pergunta de entrevista da empresa Citadel Securities

Creating a shortest path of servers (so graph theory/ dynamic programming should be brushed up on) the second question I forgot