hackerrank ruby strings iteration problem

join shbcf.ru