Write a function that returns true if two rooks can attack each other, and false otherwise.
true
false
canCapture(["A8", "E8"]) ➞ true canCapture(["A1", "B2"]) ➞ false canCapture(["H4", "H3"]) ➞ true canCapture(["F5", "C8"]) ➞ false