C# Solution that passed all test cases
C# Solution that passed all test cases\n\n\n        public int[] PlusOne(int[] digits)\n        {\n            int n = digits.Length;\n            for (int i = 
C# Solution that passed all test cases\n\n```\n        public int[] PlusOne(int[] digits)\n        {\n            int n = digits.Length;\n            for (int i = n - 1; i >= 0; i--)\n            {\n                if (digits[i] < 9)\n                {\n                    digits[i]++;\n                    return digits;\n                }\n                digits[i] = 0;\n            }\n            int[] newNumber = new int[n + 1];\n            newNumber[0] = 1;\n\n            return newNumber;\n        }\n\t\t\n```
['C#']