Reverse Subarray To Maximize Array Value Python W3schools