Conversion(Any To Any) HB

https://hack.codingblocks.com/contests/c/474/179
http://ide.codingblocks.com/#/s/22501

Actually you have solved the question only for some specific cases.
The question clearly mentions that both source base and destination base can be any number. They need not specifically be 2, 4, 6, 8, 10, 16. Rather it can be any number like 3, 7, 9, etc.
So to solve this question first you need to convert the number from its source base to base 10. Then from base as 10, i.e. decimal number you can convert it to the required destination base.

can you please provide the code