Random collection of code that I have been asked to write during interviews, etc.