Majority element problem

Not able to return the second majority element