Digital OnUs Interview Question

Java program to find duplicates values in the array