Problem Statement 📑
In order to better understand the problem, first we have to know what is majority element and what are the properties of majority element.
Any element that appears more than half of times of length of array, then that element is...