Logitech Interview Question

digital circuit and C.