Pregunta de entrevista de Abnormal AI

Basic python coding problem around leetcode easy