Providence interview question

print 1-n without loops and without recursion