Inspired by an interview question.