package leetcode;

/**
 * https://leetcode.com/problems/determine-if-two-strings-are-close/
 */
public class Problem1657 {
    public boolean closeStrings(String word1, String word2) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem1657 prob = new Problem1657();
        System.out.println(prob.closeStrings("abc", "bca")); // true
        System.out.println(prob.closeStrings("a", "aa")); // false
        System.out.println(prob.closeStrings("cabbba", "abbccc")); // true
        System.out.println(prob.closeStrings("cabbba", "aabbss")); // false
    }
}

@@ -174,24 +174,108 @@
 ng word2) %7B%0A
+        if (word1.length() != word2.length()) %7B%0A            return false;%0A        %7D%0A
         // T

Update problem 1657