Thoughtworks interview question

Database modelling