Min Max Value Expression
easy
1. You are given a string that represents an expression containing numbers and two operators + and *. 2. You have to find the minimum and maximum value which can be obtained by evaluating this expression by different parenthesization.
Constraints
1 <= length of string <= 100 Range of numbers -> [0,9]
Format
Input
A string
Output
Check the sample output and question video.
Example
Sample Input
1+2*3+4*5
Sample Output
Minimum Value -> 27
Maximum Value -> 105