Cisco interview question

Permutation in string, string questions.