GrammaTech interview question

Write a program to convert decimal to hex