two string consider close attain follow operationsoperation 1 Swap exist charactersfor example abcde aecdboperation 2 transform occurrence exist character exist character characterFor example aacabb bbcbaa turn bs bs turn asyou use operation string time necessarygiven string word1 word2 return true word1 word2 close false example 1input word1 abc word2 bcaoutput trueexplanation you attain word2 word1 2 operationsapply operation 1 abc acbApply operation 1 acb bcaexample 2input word1 word2 aaOutput falseexplanation it impossible attain word2 word1 vice versa number operationsexample 3input word1 cabbba word2 abbcccoutput trueexplanation you attain word2 word1 3 operationsapply operation 1 cabbba caabbbapply operation 2 caabbb baacccapply operation 2 baaccc abbccc Constraints1 word1length word2length 105word1 word2 contain lowercase english letter