Dominator

Find an index of an array such that its value occurs at more than half
of indices in the array.
remove unnecessary variable