Check If Two Strings Are Equivalent Leetcode