Transforme em um Array sem Duplicatas
Crie uma função que ordene um array de inteiros em ordem crescente e remova todos os valores duplicados.
Exemplos
Program.Setify(new[] { 1, 3, 3, 5, 5 }) ➞ new[] { 1, 3, 5 }
Program.Setify(new[] { 4, 4, 4, 4 }) ➞ new[] { 4 }
Program.Setify(new[] { 3, 3, 3, 2, 1 }) ➞ new[] { 1, 2, 3 }Observações
Retorne os valores únicos em ordem crescente.