Upvote if u find this understandable :-)
\n# Complexity\n- Time complexity:\n2 ms -Beats 100 %\n- Space complexity:\n Add your space complexity here, e.g. O(n) \n\n# Code\njava []\nclass Solution {\n  
\n# Complexity\n- Time complexity:\n2 ms -Beats 100 %\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```java []\nclass Solution {\n    public String[] uncommonFromSentences(String s1, String s2) {\n        HashMap<String,Integer> map1=new HashMap<>();\n        List<String> list=new ArrayList<>();\n\n        String []words=s1.split(" ");\n        String []words1=s2.split(" ");\n        for( String s:words){\n            map1.put(s,map1.getOrDefault(s,0)+1);\n        }\n        for(String s:words1){\n            map1.put(s,map1.getOrDefault(s,0)+1);\n        }\n        for (String word:map1.keySet()){\n           if(map1.get(word)==1){\n                    list.add(word);\n           } \n        } \n       return list.toArray(new String[0]);\n       \n    }\n}\n```
['Java']