Pergunta de entrevista da empresa OKG

Sort the array which contains repetitive integers?