hackerrank arithematic expression

too slow