Problem
num1 and num2 are non-negative integers written as decimal strings. Return their product, also as a string. Do not convert the inputs to integers directly or use a big-integer library: multiply digit by digit.
Example 1
- Input
- num1 = "2", num2 = "3"
- Output
- "6"
Example 2
- Input
- num1 = "123", num2 = "456"
- Output
- "56088"
Example 3
- Input
- num1 = "0", num2 = "52"
- Output
- "0"
Constraints
1 <= num1.length, num2.length <= 200num1 and num2 consist of digits only.Neither number has leading zeros, except the number 0 itself.