Find the duplicate number

You are given two arrays. The first array has unique numbers from 1 to
10. The second array has unique numbers from 1 to 10, plus an additional
duplicate number. Write a method to find the duplicate number in the
second array.