Xero Interview Question

task out from the requirement and work on it