add java solution for majorityElement