Following diagram performs the logic function of
XOR gate
AND gate
NAND gate
OR gate
X=A.B¯∴Y=X¯=A.B¯¯Y=A.B by Demorgan theorem
∴ This diagram performs the function of AND gate