Returns duplicate values in an array
Completed exercise 4. Cat is responsive.