AMI interview question

Decimal to binary convertion Hexa to binary convertion