Create MajorityElement.java