Xoom interview question

Refactor the code in this Google doc.