OYO interview question

Database design question