Your question is Reverse Character Array 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.
At Spotify, a text-processing utility stores strings as mutable character arrays. Write a function that reverses the array in place without allocating another array for the result.
Given a list of characters s, modify s so that its characters appear in reverse order.
s — a list of single-character stringss directly and return None.def reverse_string(s):