Print In Reverse Hackerrank Solution