Pregunta de entrevista de Morgan Stanley

One Leetcode Question which was a medium Leetcode.