OYO Interview Question

Database design question