Zazzle interview question

Complicated technical question