XPO interview question

Build database tables