Concatenate Non-Zero Digits and Multiply by Sum I

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(log n)

Space Complexity

O(log n)