hackerrank print in reverse problem solution

welcome to shbcf.ru