Leanplum interview question

One design question and few typical algorithm coding questions.