codility solutions...