Red Panda interview question

Database