leetcode: majority element