Update majorityNumber2.cpp