Medpace interview question

Just basic general coding questions.