AT&T Interview Question

Wasn't very complicated. Was asked about encapsulation, inheritance, and polymorphism. Asked to write a function that would determine if a string is a palindrome, and another function that determines if a number is prime.