Prometheus Group Interview Question

Write pseudocode to reverse a string.