Path Sum II, Length Of Last Word

Exercise from LeetCode, they are both accepted