Ruby solutions for https://codility.com/programmers/lessons/