First it's conceptually wrong whether in practice or in simulation to drive an output from two different output at the same time. Combinational logic implemented using continuous assignment
Code
/*Write your code here*/
module top_module(
input a,b,
output y
);
assign y = a;
assign y = b;
endmodule;