Pregunta de entrevista de RBC

Coding questions from leetcode on codesignal