Cadence Design Systems interview question

Question based on permutations and combinations (String example used). Repetition of letters allowed.