Utility function for storing the vector of strings into HashMap
def storeInMap ( vec : list ) -> None : NEW_LINE INDENT store = defaultdict ( lambda : list ) NEW_LINE for i in range ( len ( vec ) ) : NEW_LINE INDENT tempString = vec [ i ] NEW_LINE tempString = ' ' . join ( sorted ( tempString ) ) NEW_LINE DEDENT DEDENT