The output Y for the given inputs A and B to the circuit is: [2026]

(2)

Output wavefrom is same as B.