Pergunta de entrevista da empresa LinkedIn

output all the permutations and compute the code time complexity