Codility_Solution_2_Final