Signify Interview Question

What is the optimal way to solve the string reverse?