add palindrome method in the common class
Merge pull request #11 from CodeApeRan/work-pc

add palindrome method in the common class