Best Time to Buy and Sell Stock

http://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock/