Pergunta de entrevista da empresa Two Sigma

Some coding questions, cannot disclose specifics