Majority Element

Try to solve the Majority Element problem.

Statement

Given an array, nums, having nn integers, return the majority element. An element will be considered a majority element if it occurs more than n/2⌊n / 2⌋ times in the array.

...