How do you reverse an array without using a for loop? Implement reverse_array(arr) to reverse the input list in place using another control-flow technique. The input is a list of values, and the function must return that same list object after reversal. An empty list and a single-element list are valid inputs.
def reverse_array(arr):