explain logic gates with example - Search