iLeaf Solutions interview question

find duplicates elements and the repeating times in an array without double loops