AMD interview question

Walk us through how an CMOS Inverter would work