how to solve this problem [palindrome and number bases]
https://uva.onlinejudge.org/contests/357-7b8c7371/12994.pdf
newbie here please bear with me