Advanced AND Gate (3 Inputs)