Pregunta de entrevista de OKG

Sort the array which contains repetitive integers?