Snapdeal interview question

Count All Palindrome Sub-Strings in a String.