Medidata Solutions Interview Question

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