IQVIA interview question

Programming approaches based on certain scenario