Given a string representing a mathematical expression containing integers, parentheses, addition, and subtraction operators, evaluate and return the result of the expression.
Input: s = '18-(7+(2-4))' Output: 13