Ana and Banana are playing a game. First Ana picks a word, which is defined to be a nonempty sequence of capital English letters. (The word does not need to be a valid English word.) Then Banana picks a nonnegative integer $k$ and challenges Ana to supply a word with exactly $k$ subsequences which are equal to Ana's word. Ana wins if she is able to supply such a word, otherwise she loses.
For example, if Ana picks the word "TST", and Banana chooses $k=4$, then Ana can supply the word "TSTST" which has $4$ subsequences which are equal to Ana's word.
Which words can Ana pick so that she wins no matter what value of $k$ Banana chooses? (Find all words such that Ana can pick at the start and always have a winning response regardless of the value of $k$ chosen by Banana.)
Remarks.
If Ana chooses "A", then for any $k$, Ana can give a word with exactly $k$ subsequences "AAA...A" ($k$ times). If Ana chooses "AB", then for any $k$, Ana can give a word with exactly $k$ subsequences "ABBB...B" ($k$ times).
If Ana chooses a string with no repetition at the end, say $X_1X_2X_3\cdots X_n$, where $X_{n-1}\neq X_n$, then Ana wins for any value of $k$ by supplying $$X_1X_2X_3\cdots X_{n-1}\underbrace{X_nX_n\cdots X_n}_{k\text{ terms}}\,.$$
If Ana chooses a string of length $n>1$ consisting of the same letter, she loses if Banana takes $k=2$ already.
PS: I didn't posted it AOPS since we only get solutions there .
Thanks in advance.