Pergunta de entrevista da empresa Two Sigma

3 hackerrank questions in increasing difficulty, standard algos questions in general