Leetcode Plus One Problem Solving