class Solution: def plusOne(self, digits: List[int]) -> List[int]: n = len(digits) s = "" for i in range(n): s += str(digits[i]) s = int(s) + 1 s = str(s) ans = [] for i,v in enumerate(s): ans.append(v) return ans