To obtain the given truth table, following logic gate should be placed at G:
NOR Gate
AND Gate
NAND Gate
OR Gate