ServiceNow interview question

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