Pergunta de entrevista da empresa Apple

Basic question about analog and digital circuit