Create majorityNumber3.cpp