add solution for "majority element"