DXC Technology Interview Question

Duplicate numbers in array and Ascending order