Given a list of flight prices, find the maximum profit you could make by buying and selling at different times.