
Concept:
Analyzing the output $Y$ for different input combinations helps identify the logic of intermediate gates.
Step 1: Analyze the truth table.
| $A$ | $B$ | $Y$ |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Step 2: Evaluate the logic flow.
The final gate is an OR gate: \[ Y = A \text{ OR } C \]
Final Conclusion:
\[ \boxed{\text{Gate G is an AND gate}} \]
