




Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The maximum length of expression is very low. We can try every possible spot to place the parentheses.
Every possibility of expression is of the form a * (b + c) * d where a, b, c, d represent integers. Note the edge cases where a and/or d do not exist, in which case use 1 instead of them.