Solution 2 :
The logic function performed by the CMOS digital circuit is given by,
Vout = -[( A + B ) C]