LeetCode
Palindrome Permutation II
Click
here
for an explanation.