Pergunta de entrevista da empresa Trexquant Investment

Was given a coding challenge first