Pregunta de entrevista de Google

Standard around medium leetcode problems.