Monitise interview question

How to design distributed pain application