Truth table for system of four NAND gates as shown in figure
Output of the circuit isY=AAB (B)AB =AAB+BAB =ABA+B =A+BA+B =AB+AB so option 3 is correct