Hi-Rez Studios interview question

Write an algorithm to reverse a string taken in as a parameter