A combinational switching circuit has four inputs (A, B, C, D) and one output (F).
F = 0 iff three or four of the inputs are 0.
(a) Write the maxterm expansion for F.
(b) Using AND and OR gates, find a minimum three-level circuit to realize F (five gates, 12 inputs).