Question d’entretien chez ProProfs

Sort the array in ascending and descending order