Yelp Interview Question

Coding over the phone as listed in the description

Interview Answer

Anonymous

Apr 13, 2016

from collections import Counter data = """ Nick1 : Howdy Nick2 : Some message Nick3 : Something else Nick1 : I am good """ data = [i.split(":")[0] for i in data.split("\n") if i!= ""] print Counter(data)