Create length-of-last-word.cpp

Pay attention to the move of endIndex. It has to be pointed to alphabet before traversing.