EY interview question

Database design