Pergunta de entrevista da empresa Citi

Write an algorithm to get the outcome of expressions in a string. For example: (3+2)*5-2*2