Implement an In-Memory Database | Coinbase Coding Question