Hi-Rez Studios Interview Question

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