ByteDance Interview Question

write codes to show all the permutations from 1 to n