AppNexus Interview Question

Word permutation program