Codility training my solutions