Function to list all numbers from start to end