This code takes an array of day to day prices for a stock and gives the buy and sell days that would yield the greatest profit. Eric Lin co-wrote this.