Update CodeJam-2013-Qualification-Round-C.py

Replaced palindrome function with new and improved version. Still need to test to verify that it is more efficient.