Lets say I have an array with integers, which represent the daily changes in the price of a stock, as an example the following array: [3, -1, -4, 1, 5, -9, 2, 6]. How would I fi