HarperCollins interview question

Review code, write code, improve efficiency