Question d’entretien chez Onet

Write algorithm for getting permutations of n element set.