Morse is the language of "."(Dots) and "-"(Dashes)
For convenience, the full table for the 26 letters of the English alphabet is given below:
[".-","-...","-.-.","-..",".","..-.","....","--..","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--..","-.--"]
Given an Integer N indicating test cases followed by 2N lines first line containing an Integer M size of array and the next line containing array of strings where each word can be written as a concatenation of the Morse code of each letter.
print the number of different transformations among all words we have.
Input: words = ["gin","zen","gig","msg"]
Output: 2
Explanation: The transformation of each word is:
"gin" -> "--...-."
"zen" -> "--...-."
"gig" -> "--...--."
"msg" -> "--...--."
There are 2 different transformations: "--...-." and "--...--.".