Pregunta de entrevista de Adobe

Leetcode coding question difficulty level medium/hard