Second Order Effects Interview Question

How would you convert an analog input to a digital input and vice versa.