first i have declared wire named w ,then i have assigned w equals to our input a ,next assigned y output equals to w , it creates a wire which will be work as mediator.
Code
module top_module(input a, output y);
// Write your code here
wire w;
assign w=a;
assign y=w;
endmodule