Leanplum interview question

Basic algorithms/data structures and design