Create majorityElement.cpp