Draw the output signal Y in the given combination of gates.
Output of NAND gate=A⋅A‾=Aˉ\text{Output of NAND gate} = \overline{A \cdot A} = \bar{A}Output of NAND gate=A⋅A=Aˉ
Output of OR gate=Aˉ+B\text{Output of OR gate} = \bar{A} + BOutput of OR gate=Aˉ+B
Y=Aˉ+B‾=A‾‾⋅Bˉ=A⋅BˉY = \overline{\bar{A} + B} = \overline{\overline{A}} \cdot \bar{B} = A \cdot \bar{B}Y=Aˉ+B=A⋅Bˉ=A⋅Bˉ
YYY is 1 for A=A =A= and B=0B = 0B=0
Hence, Y=1Y = 1Y=1 for intervals (0,1)(0,1)(0,1) and (4,5)(4,5)(4,5), and 000 elsewhere.
Tagged Logic gates and digital circuits. Machine-assigned, so read it as a strong shortlist rather than a verdict.