Solved length of last word problem.