UST interview question

Python program on hexadecimal to binary and decimal