Concept: Here we have used concept of AND, and NAND gate concepts.

If two inputs A, B are connected in And gate then the output can be written as: Y = A.B ----- (1)

In the case of the NAND gate when we connect two inputs A and b then output is:
Calculation:
Given:
Here in this circuit, we have labeled it as 1,2,3 part of circuit having outputs Y1, Y2, and C.
Y1 = solution of first two input NAND gate, Y2 = solution of second two input NAND gate
C = solution of third AND gate connecting both NAND gates as two inputs
From the circuit diagram, we can see that


Here output C = Y2.Y1

(By De Morgan's theorem)
This can be written as:

So, we can write the truth table as

when B = 0 then C = 1, B = 1 then C = 0 so that solution is completely independent on A.
So, the truth table is:

Hence option 4) is correct.