Pergunta de entrevista da empresa IMC Trading

First question was to implement a stack with ability to add numbers to multiple elements in O(1) Second question was a graph question