Question d’entretien chez LinkedIn

output all the permutations and compute the code time complexity