New solution for 'Length of Last Word'