Pregunta de entrevista de Trexquant Investment

Was given a coding challenge first