Palindrome Partitioning

Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
Example
Given s = "aab",
Return
[
["aa","b"],
["a","a","b"]
]

Login to see Answer and Coaching Session More interview questions