The Major Element solution https://www.codeeval.com/open_challenges/132/