public class Solution {

    public int findLUSlength(String a, String b) {

        if (a.equals(b)) {
            return -1;
        } else {
            return Math.max(a.length(), b.length());
        }

    }

}

Create : 521 Longest Uncommon Subsequence I