Keyloop (UK) interview question

design and optimize simple database, code review and fixes