Simplify a string expression containing multiple brackets and operands such as + and -, removing all brackets and producing the simplified result.
Implement simplify_expression(expression). The expression contains single-letter operands, +, -, parentheses, and optional spaces. Return an equivalent expression with no parentheses or spaces, preserving operand order and using explicit signs between terms.
The input is valid, contains at least one operand, and does not use unary operators. For example, a-(b-c-(d+e)) becomes a-b+c+d+e.
+, -, parentheses, and spaces.def simplify_expression(expression):