Pergunta de entrevista da empresa Tynker

Write pseudocode to generate all Permutations of an array of size N