Suppose there are no duplicate letters, number of sequences of a string of 7 letters is 7!
Now, there are 3 duplicates, therefore number of distinct sequences is 7! / 3!
Taking the first four elements yields 7! / 3! / 3! = 140