Some Codility test that I've done so far.