Qualcomm interview question

program to convert hexadecimal to binary