BookMyHouse interview question

convert n numbers to binary number