Pregunta de entrevista de Point72

A simple coding question regarding price series.