Deloitte interview question

code to print 1 to 10 numbers