3 input and gate function - Search