Your question is Reverse a String In Place. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given an array of characters chars, reverse the array in place and return it. The reversed result must contain the same characters in opposite order, and the solution should use constant extra space aside from the input array.
def reverse_string(chars):