Prometheus Group interview question

Write pseudocode to reverse a string.