Pergunta de entrevista da empresa ICU Medical

Triangle Coding, Reverse string, Output as expected