length of last word leetcode