Pergunta de entrevista da empresa ServiceNow

Implement the code for binary representation of a given number