OKG interview question

Sort the array which contains repetitive integers?