Apple interview question

Basic question about analog and digital circuit