Solution to Length of last word