Your question is Reverse 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.
Given an array arr of integers, reverse the array in place without using built-in language functions such as reverse() or slicing. Return the reversed array after modifying it by swapping elements from both ends toward the center.
def reverse_array(arr):