Oracle Interview Question

Given a string, generate all the permutations of the string