Nagarro interview question

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