Xtrades interview question

How would you architect this?