hackerrank ruby enumerable introduction problem

visit shbcf.ru