If inversion count is same , or have same parity or if any of the string have a repeated character then the answer is Yes else No
System . out . println ( " Yes " ) ; } else System . out . println ( " No " ) ; }