Sukuk Capital Interview Question

Reverse a string with O(n) Time Complexity