https://leetcode.com/problems/determine-if-two-strings-are-close
Two strings are considered close if you can attain one from the other using the following operations:
如果我們可以使用下面兩種操作, 將其中一個字串轉變為另外一個字串
Operation 1: Swap any two existing characters.
交換兩個存在的字元, 例如 abcde -> aecdb
Operation 2: Transform every occurrence of one existing character into another existing character, and do the same with the other character.
Given two strings, word1 and word2, return true if word1 and word2 are close, and false otherwise.