Print In Reverse Hackerrank Solution Cpp