Pergunta de entrevista da empresa Apple

Q: Write a program that detects if two given strings are ambigrams.