Raas Infotek interview question

To print the duplicate elements in an array program