Switch to library method for palindrome check.
Solve problem 125 using C++/Python.