solutions for Majority Element

hash table