NVIDIA interview question

Write a function to find the repeated elements in an array and their counts.