Given two strings s and goal, return true if you can swap two letters in s so the resulting string is equal to goal, or false otherwise.
Swapping letters is defined as taking two indices i and j (zero indexed) such that s[i] and s[j].
Constraints:
s.length, goal.length
s and goal consist of lowercase letters.
Given two strings s and goal, return true if you can swap two letters in s so the resulting string is equal to goal, or false otherwise.
Swapping letters is defined as taking two indices i and j (zero indexed) such that s[i] and s[j].
Constraints:
s.length, goal.length
s and goal consist of lowercase letters.