Macleods Pharma interview question

Coding round questions that reflect basic dot net core logic