There is no way to give an answer based on so little information.
You need to provide much more detail and examples.
The string “11112” can be arranged in five different ways.
The string “11122” can be arranged in different ways.
Is that close to what you mean?