Medidata Solutions interview question

design a payments discount application