Nokia Interview Question

how to reverse the middle of the string