Xero interview question

Some basic questions on databases