Dye & Durham Interview Question

Write a function to convert a decimal number to binary.