Wrote solution to Stocks in F#