Partial solution for the Code Evval "Palindromic Ranges" problem