OKG Interview Question

Sort the array which contains repetitive integers?