Sukuk Capital interview question

Reverse a string with O(n) Time Complexity