Draw the output signal Y in the given combination of gates :-