Explanation : Here total 7 NAND gates are present and in half adder one AND and one EX-OR gate are required.
In turn one EX-OR gate can be built by 5 NAND
where as one AND gate can be built by 2 NAND gates
so this is diagram of half adder. So the answer is (D).