A method that takes in an array of stock prices, one for each hypothetical day, and returns the best day to buy and the best day to sell in order to achieve the greatest profit.