Solutions to some codility problems.