solution for palindromic nb