Pregunta de entrevista de Innomick Technologies

Basic python algorithm question, easier than Leetcode medium questions.