Pregunta de entrevista de RBC

Reverse string using python (performed on hacker-rank like website)