....
two nand gates 1st nand has got two input ,whose output work as input for both the circuit of 2nd nand gate and resultant of both gives and gate.