You are given three strings s1, s2, and s3. In one operation, you can choose any of the three strings and remove its rightmost character.
Return the minimum number of operations required to make all three strings equal and non empty. If it is impossible to make them equal, return
Constraints:
s1.length, s2.length, s3.length
s1, s2, and s3 consist only of lowercase English letters.
You are given three strings s1, s2, and s3. In one operation, you can choose any of the three strings and remove its rightmost character.
Return the minimum number of operations required to make all three strings equal and non empty. If it is impossible to make them equal, return
Constraints:
s1.length, s2.length, s3.length
s1, s2, and s3 consist only of lowercase English letters.