Boston Consulting Group Interview Question

Python test: write a function to test if two strings are "compatible"