Pregunta de entrevista de Hudson River Trading

Leetcode easy and medium on CodeSignal