My Codility's solutions