Pregunta de entrevista de ServiceNow

Implement the code for binary representation of a given number