Ans is D, but why not option C?
Refer https://gateoverflow.in/155406/digital-logic
64.3k questions
77.9k answers
244k comments
80.0k users