L3Harris Interview Question

Write a function to reverse a string in C++ without allocating extra memory