Pregunta de entrevista de Toptal

Question about domino dots in a leetcode style question.