CDK Global Interview Question

Write an API method to reverse a string