[LC] Add solution to length of last word.