Medidata Solutions interview question

Tested for problem solving from live