Domanda di colloquio di Cisco

Two logic design questions. Implementation of a module that does some task.