Top coder problem: anti palindromes - first try