Pregunta de entrevista de Jane Street

Programming question, leetcode style and similar