A collection of solutions to some simple technical interview questions I have come across.