結果 : check if two strings have same characters in java