Majority Number III(LintCode 48):

Problem