FINISH the Length of Last Word problem