The output of the given combination gates represents:

The output of the given combination gates represents:

By De Morgan's theorem, we have

Here the output of and gives and . This output is fed as inputs to NAND gate and the output is , when when again fed as input to NAND gate to get output as .
Asked in: JEE Main 2021 (17 Mar Shift 1)