Function to print all the strings that match the given pattern where every character in the pattern is uniquely mapped to a character in the dictionary
static void findMatchedWords ( String [ ] dict , String pattern ) {