Epic Interview Question

A code for generating string permutaions - dont remember the exact question.