Pregunta de entrevista de Microsoft

How to convert an integer into a binary number?