Tegus interview question

Coding exercise simulating operations in a stock, which could be solved my implementing a hashmap with certain rules