Making inverter with MOSFETs

Here is the idea of the proposed solution :