Create a function that takes a string and returns a new string with its first and last characters swapped, except under three conditions:
"Incompatible."."Incompatible."."Two's a pair.".flipEndChars("Cat, dog, and mouse.") ➞ ".at, dog, and mouseC"
flipEndChars("ada") ➞ "Two's a pair."
flipEndChars("Ada") ➞ "adA"
flipEndChars("z") ➞ "Incompatible."
flipEndChars([1, 2, 3]) ➞ "Incompatible."
Tests are case sensitive (e.g. "A" and "a" are not the same character).