How do you plan to solve?
the given question clearly explains the logic gate (not)is used here and the ouput should always be the inverse of the input signal
EX: a=1/Y=0 for not gate
module top_module(input a ,output y); assign y = ~ a; endmodule