Intelliswift interview question

reverse a no. and print