Pregunta de entrevista de Skillz

Programming problem on HackerRank related to the role