a palindrome is a word or a number that reads the same forward and backward . for example , 2442 and 111 are palindromes . if 5 - digit palindromes are formed using one or more of the digits 1 , 2 , 3 , 4 , 5 , and 6 , how many palindromes are possible ?
"there are 6 choices for each of the first three digits . the number of possible palindromes is 6 ^ 3 = 216 . the answer is d ."
power(5, 3)