int majorityElement(vector<int> &num) {