Write the truth table for a NAND gate connected as given in figure.