circuit symbol of a logic gate and two input waveforms A and B are shown. Write its truth table and give the output waveform.