give string s goal return true swap letter s result equal goal return falseswappe letter define take index j 0indexed j swap character si sjFor example swap index 0 2 abcd result cbad Example 1input s ab goal baOutput trueexplanation you swap s0 s1 b ba equal goalexample 2Input s ab goal abOutput falseexplanation the letter swap s0 s1 b result ba goalExample 3input s aa goal aaoutput trueexplanation you swap s0 s1 aa equal goal Constraints1 slength goallength 2 104s goal consist lowercase letter