NatWest Group interview question

WAP to convert a number into binary.