LeetCode

Plus One

Click here for an explanation.