Xero Interview Question

Challenges faced and code review