Deloitte Interview Question

code to print 1 to 10 numbers