An array of digits represents a non-negative integer, most significant digit first. Return the array after adding one to the number.
Example 1
Explanation: 123 + 1 = 124, and only the last digit changes.
Example 2
Example 3
Explanation: 99 + 1 = 100 — the carry propagates through both 9s and the array grows by one digit.
Code execution is coming soon.