Codility Problems and Solutions