ServiceNow Interview Question

Pseudocode an algorithm that takes in a string and returns it reversed