Solution: (one of many for the circuit diagram)
Some comments on the solutions I saw:
- Use the conventional truth table ordering. It will lead to less confusion
down the road.
- Practice drawing circuit schematics if it is taking you a long time.
- Don't add unnecessary complication to exercises (if the exercise does not
ask you to reduce or optimize a circuit, you don't have to).