Xoom Interview Question

Refactor the code in this Google doc.