Majority Element Leetcode Javascript Interview Questions