Some solutions to common programming interview problems.