Liaoyuan interview question

handle large int addition and multiplication.