Print In Reverse Hackerrank Solution For Java