LeetCode
Can Make Palindrome from Substring
Click
here
for an explanation.