Intelliswift Interview Question

reverse a no. and print