Colorkrew interview question

number occur once palindrome string sort