Ola interview question

Finding duplicate entries in an Array Java program