Sketch the output waveform obtained form NAND gate for the inputs A and B as shown in figure.