Domanda di colloquio di High-Flyer Quant

implement all permutations of one sequence