Epic interview question

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