Solutions for https://codility.com/train/