369. Plus One Linked List

Problem

Given a non-negative integer represented as a linked list of digits, add one to the integer.

A non-negative integer is represented as a linked list where each node contains a single digit. Add one to the integer and return the result as a linked list.

Examples
Input: [1,2,3]
Output: [1,2,4]
Hints
Related Problems

369. Plus One Linked List

Given a non-negative integer represented as a linked list of digits, add one to the integer.