Pergunta de entrevista da empresa Birch Hill Equity Partners

leetcode easy python algorithm question