Given a string s, reverse the characters of each word in s while preserving the order of the words and the spaces between them.
Return the resulting string.
Note: A word is a maximal substring of non space characters.
Constraints:
s.length
s contains printable ASCII characters.
s has no leading or trailing spaces.
s contains at least one word.
Every word in s is separated by exactly one space.
Given a string s, reverse the characters of each word in s while preserving the order of the words and the spaces between them.
Return the resulting string.
Note: A word is a maximal substring of non space characters.
Constraints:
s.length
s contains printable ASCII characters.
s has no leading or trailing spaces.
s contains at least one word.
Every word in s is separated by exactly one space.