getting wa in http://www.spoj.com/problems/ARITH2/

my solution is http://ideone.com/sOYd8J
please help

Hi, I am not a java coder but I found one test case for which your code fails.


Link -->Your solution with the test case

Test case:

1

2 + 4 * 3 + 2 * 1 * 3 + 4 =

Expected Output=24
Your Output=64