ICU Medical Interview Question

Triangle Coding, Reverse string, Output as expected