Frage im Vorstellungsgespräch bei Dye & Durham

Write a function to convert a decimal number to binary.