Amazon Interview Question

Write code to Implement a circuit board with logical gates.