Samsung Electronics interview question

Coding test was based around optimizing a mock database.