swap
code: swift
var S = Array(readLine()!)
let T = Array(readLine()!)
var ans = "No"
if S == T {
ans = "Yes"
}
for i in 0..<S.count-1 {
S.swapAt(i, i+1)
if S == T {
ans = "Yes"
}
S.swapAt(i, i+1)
}
print(ans)
#配列