Given an array `nums` of size n where one element appears more than n/2 times, return that majority element. It is guaranteed to exist.