Create majority-element.cpp

No shortcut, still need a vector to store the counts of each element and scan for the first number that has count > n/2.