SingleStore interview question

Optimize a query for a simple key-value store