Questions and solutions to algorithmic interview problems