Given word is ALGORITHM
⇒ Total number of letters in algorithm = 9
∴ Total number of words = 9!
So, n(S) = 9!
If ‘GOR’ remain together, then we consider it as one group.
∴ Number of letters = 7
Number of words, if ‘GOR’ remain together in the order = 7!
So, n(E) = 7!