Coinbase Interview Question

implementing a stock buy/sell program