Question: 
Write a function to get the word with most number of occurrences in the given strings list.


Model's Code:
def most_occurrences(strings):
    from collections import Counter
    words = ' '.join(strings).split()
    most_common_word, _ = Counter(words).most_common(1)[0]
    return most_common_word



Sample Correct Code:
from collections import defaultdict 

def most_occurrences(test_list):
  temp = defaultdict(int)
  for sub in test_list:
    for wrd in sub.split():
      temp[wrd] += 1
  res = max(temp, key=temp.get)
  return (str(res)) 


Asserts:
assert most_occurrences(["UTS is best for RTF", "RTF love UTS", "UTS is best"] ) == 'UTS'
assert most_occurrences(["Its been a great year", "this year is so worse", "this year is okay"] ) == 'year'
assert most_occurrences(["Families can be reunited", "people can be reunited", "Tasks can be achieved "] ) == 'can'


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 326 of 974: 234/326 (71.77914110429448%): success