
You are given an array of strings ideas that represents a list of names to be used in the process of naming a company. The process of naming a company is as follows:
Choose 2 distinct names from ideas , call them idea _A and idea _B .
Swap the first letters of idea _A and idea _B with each other.
If both of the new names are not found in the original ideas , then the name idea _A idea _B (the concatenation of idea _A and idea _B , separated by a space) is a valid company name.
Otherwise, it is not a valid name.
Return the number of distinct valid names for the company .
2 <= ideas.length <= 5 * 10 ^41 <= ideas[i].length <= 10ideas[i] consists of lowercase English letters.All the strings in ideas are unique .