Solutions to Codility Problems