Nagarro Interview Question

program for finding duplicate array elements and put it in array in increasing order