My solution for public available codility lessons