Dell Technologies interview question

Reverse a string in place