Multiply Strings

Medium · Math & Number Theory · about 20 minutes

Asked at Meta, Google, Amazon, Pinterest, Bloomberg, Microsoft, Etsy, Zillow, Duolingo, Match Group.

num1 and num2 are non-negative integers written as decimal strings. Return their product, also as a string. Do the arithmetic digit by digit; don't parse them into integers or use a big-number library.