leetle
3. Majority Element
Write a function solve that finds the majority element in a list. The majority element appears more than n/2 times where n is the length of the list.
Example: Input: [3,2,3] Output: 3
Make sure you return your solution, don't print!
Python3
def solve(nums):
pass