HackEDU interview question

How would you solve this specific database issue?