You are given two strings s1 and s2 of equal length, consisting only of the characters 'x' and 'y'.
In one operation, you can choose an index from s1 and an index from s2, then swap the characters at those positions.
Return the minimum number of swaps required to make both strings equal. If it is impossible to make them equal, return
Constraints:
s1.length, s2.length
s1.length s2.length
s1 and s2 consist only of 'x' and 'y'.
You are given two strings s1 and s2 of equal length, consisting only of the characters 'x' and 'y'.
In one operation, you can choose an index from s1 and an index from s2, then swap the characters at those positions.
Return the minimum number of swaps required to make both strings equal. If it is impossible to make them equal, return
Constraints:
s1.length, s2.length
s1.length s2.length
s1 and s2 consist only of 'x' and 'y'.