Print In Reverse Hackerrank Solution Python