I know basic gates but not their structure
Analyse the working of the circuit for all possible values of A and B. Write down a truth table of A, B and the output. Then you should recognise a pattern. 

In this case, note that the output is directly connected to 6V. What does that tell you?