Light & Wonder interview question

A program to print a string in reverse