Given a string s, return the number of ways to partition s such that every substring of the partition is a palindrome.
Input: A quoted string s.
Output: Integer — number of palindrome partitionings.
Input: "aab"
Output: 2
Explanation: ['a','a','b'] and ['aa','b'].Input: "a"
Output: 1
Explanation: ['a'].Input: "abc"
Output: 1
Explanation: Only all-singletons.1<=s.length<=16