add length of last word solution