Codility Lessons 2 & 3