DSA Key Problems

Length of Last Word

Given a string containing words and spaces, return the length of its final word.