Pregunta de entrevista de Goldman Sachs

Medium tasks from LeetCode -- DP and graph