Mixmax interview question

Coding Challenge