codility solutions