Get all Permutations of Array?

Old thread stating similar code which does not work either anymore.

Kind regards