Domanda di colloquio di Point72

A simple coding question regarding price series.