Voleon Interview Question

Implement a basic calculate (Java)