Given a string s consisting of words and spaces, return the length of the last word in the string.
A word is a maximal substring consisting of non-space characters only.
Trailing spaces should be ignored.
Input: A single string s.
Output: An integer — the length of the last word.
Input: Hello World
Output: 5
Explanation: The last word is 'World' which has length 5.Input: fly me to the moon
Output: 4
Explanation: Ignoring trailing spaces, the last word is 'moon' with length 4.Input: luffy is still joyboy
Output: 6
Explanation: The last word is 'joyboy' with length 6.1 <= s.length <= 10^4s consists of English letters and spacesThere is at least one word in s