Domanda di colloquio di Innomick Technologies

Basic python algorithm question, easier than Leetcode medium questions.