Solutions for lessons from codility