Takes as input a 16-bit binary number and converts it to BCD (Each decimal digit is a 4-bit binary number).