Bosch Interview Question

find a duplicate in an array and display yes if there is duplicate else no