Pregunta de entrevista de Accenture

easy lvl problem from leetcode top 100 most asked