result to store the final split strings.word in the words array.
a. Initialize an empty string current to collect characters between separators.
b. Iterate over each character char in word.
i. If char is not the separator, append it to current.
ii. If char is the separator and current is not empty, append current to result and reset current to an empty string.
c. After the loop, if current is not empty, append it to result.result list.