Remove all repeating words from an inputted sentence.
Input will be something like cat dog cat dog bird dog Snake snake Snake
and the output should be cat dog bird Snake snake
. There will always be a single space separating words.
Output order must be the same as input. (Refer to the example)
You don't need to handle punctuation but capital letter handling is required.
Snake
andsnake
are treated simply as different \$\endgroup\$