Blackbaud interview question

Basic coding question with choice of language.