When both A and B have logical value ‘1’ both diode are reverse bias and current will flow in resistor hence output will be 5 volt i.e. logical value ‘1’.
In all other case conduction will take place, hence output will be zero volt i.e. logical value ‘0’. So truth table is
A0011B0101Y0001
Thus, given circuit is equivalent to an AND gate.