Fast Enterprises interview question

Write a pseudocode function that converts a number into its binary representation