Xero Interview Question

Some basic questions on databases