This is the circuit to create a NAND gate using NPN transistors. A NAND gate is the opposite of an AND gate, it will output 1 in every case except when both inputs are 1. You can use this NAND gate to create an AND gate by reversing its output using a NOT gate.