HarperCollins Interview Question

Review code, write code, improve efficiency