find maximum duplicated element in an array