Hopper interview question

Interesting question implementing db access patterns