Show the output waveforms (Y) for the following inputs A and B of (i) OR gate (ii) NAND gate

Show the output waveforms (Y) for the following inputs A and B of (i) OR gate (ii) NAND gate.