Write the truth table for the circuit shown in figure. Show that it represents a XOR gate.