Given an array with duplicates, find maxoccurence