Pregunta de entrevista de Collins Aerospace

Go on LeetCode and search up question #1.