You are given a large integer represented as an integer array digits, where each digits[i] is the i-th digit of the integer. The digits are ordered from most significant to least significant (left to right). The large integer does not contain any leading zeros.
Increment the large integer by one and return the resulting array of digits.
Input: digits = [1,2,3] Output: [1,2,4] Explanation: The integer 123 incremented by 1 is 124.
Input: digits = [4,3,2,1] Output: [4,3,2,2] Explanation: The integer 4321 incremented by 1 is 4322.
Input: digits = [9] Output: [1,0] Explanation: The integer 9 incremented by 1 is 10, which requires an extra digit.
1 <= digits.length <= 1000 <= digits[i] <= 9digits does not contain any leading zeros (except for the number 0 itself).digits = [1, 2, 3]