Codility example