Analog Devices interview question

Puzzles, Problem solving using Digital Electronics