finished distinct subsequences
finished string permutations