Write the truth table for the circuit shown in the figure given below. Name the gate that the circuit resembles.