Addepar interview question

Typical coding problems.