algo4: miscellaneous: Palindromic number