Adchemy Interview Question

standard algorithmic questions