https://medium.com/@ingila185/leetcode-problem-169-majority-element-javascript-using-map-c1d7eeb5dcb1