Plus One Linked List

Given a non-negative number represented as a singly linked list of digits, plus one to the number.

The digits are stored such that the most significant digit is at the head of the list.

Example:

  1. Input:
  2. 1->2->3
  3. Output:
  4. 1->2->4