Solve one and a half interview problems.