Print In Reverse Hackerrank Solution For Sql