Return List as output

I have to return list as output but am getting error , can anyone help how to do it?