generate a list of numbers upto n

Solutions on MaxInterview for generate a list of numbers upto n by the best coders in the world