The figure below shows a 2-input NAND gate implemented with p-type and n-type MOS transistors. Modify the transistor level circuit in this figure to implement a 3-input NAND. The output will be low if and only if all three inputs are high. Design it with p. type and n-type MOS transistors.
+3.3V
~(A&B