solve the length of last word.