Add O(n) version of pick stock price.