Boyer–Moore Voting Algorithm This leetcode problem is essentially that https://leetcode.com/problems/majority-element/description/?envType=study-plan-v2&envId=top-interview-150.