Design a circuit that implements the 5-input majority function, that is, the output is 1 when there are more ones than zeros at the inputs.
module majority(a, b, c, d, e, maj);
input a, b, c, d, e;
output maj;a, b, c, d
and e are the inputs.
maj is the output implementing the majority
function.