Print all permutations of a given string using recursion.
Asked in the senior managerial round stage.
Implement permutations(s), where s is a string. Return a list containing each distinct permutation exactly once, in depth-first backtracking order. For an empty string, return [].
def permutations(s):