Reverse Subarray To Maximize Array Value Python Tutor