Solutions for Codility's Lessons