Solution 4 :
The complex logic function performed by the six-input CMOS logic gate is given by,
Vout = -[ABC + D + EF ]