Pergunta de entrevista da empresa Toptal

Question about domino dots in a leetcode style question.