Solved a find mini append palindrome problem