Pregunta de entrevista de Dell Technologies

one interviewer got the question from leetcode.