Can someone teach me how logic gates work in gkc

Here is a very simple one!