finished parity map solution for palindrome permutation