Pergunta de entrevista da empresa Tegus

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