Pregunta de entrevista de IXL Learning

leetcode question, data structure and algorithms