Given an array nums of size n, return the majority element. The majority element is the element that appears more than round(n/2) times. You may assume that the majority element always exists in the array. Use the code template main_find_major_element main_find_major_element: #include <iostream> #include <vector> #include <algorithm> using namespace std; // implement the function here. int findMajorityElement(vector< int > &v) { return 0; } int main() { int n; cout << "Enter the size of the vector: "; cin >> n; vector< int > input; int element; cout << "Enter the elements of the vector: "; for ( int i = 0; i < n; i++) { cin >> element; input.push_back(element); } int result = findMajorityElement(input); cout << "The Majority Element is: " << result << endl; return 0; } Examples: Input: Output: 3 Input: Output: 2.