Pergunta de entrevista da empresa Two Sigma

Based on Binary Search, Graphs and arrays