General Motors (GM) Interview Question

Convert a number string to BCD