Pregunta de entrevista de ICU Medical

Triangle Coding, Reverse string, Output as expected