Betterment interview question

Collaborative coding assignment to re-balance a portfolio allocation