Question d’entretien chez Dye & Durham

Write a function to convert a decimal number to binary.