https://medium.com/@immy6315/how-to-solve-length-of-last-word-a-guide-to-leetcode-problem-58-7a448f190371