Pregunta de entrevista de WeWork

combination of Leetcode easy and medium