codility challange
half