Pergunta de entrevista da empresa Goldman Sachs

The question for live coding was based on the concept of sliding window