Pregunta de entrevista de Therap BD

Basic problem solving copies from leetcode