Codility examples and lessons