Dell Technologies Interview Question

It is the same one from leetcode. It is "Add Digits".