Create Palindrome Number

more generic way ? is what? to be continued?