Google interview question

Question similar to BigInteger Multiplication on LeetCode.