Solution 2 :
The output voltage of the circuit is given by,
Vout = (VA OR VB) AND VC AND (VD OR VE OR VF)