Pergunta de entrevista da empresa Medidata Solutions

The coding exercise was easy. It is about writing a calculator-like program that can parse the input and put it to a stack.