ZoomInfo interview question

Convert an array of numbers to BCD format.