MAQ Software interview question

Coding question to reverse a string