A sentence is a string containing words separated by single spaces, and each word consists only of lowercase English letters.
A word is considered uncommon if:
• It appears exactly once in one of the two sentences,
• and does not appear in the other sentence.
Given two sentences s1 and s2, return a list of all uncommon words.
You may return the answer in any order.
Input: s1 = "this apple is sweet" s2 = "this apple is sour"
Output: ["sweet", "sour"]
Input: s1 = "apple apple" s2 = "banana"
Output: ["banana"]
Accepted:
Submission: