Palindrome Rearrangement Enumeration - Coding problem | OneNoughtOne