Pregunta de entrevista de Motive

coding problem to solve leetcode