Blackbaud Interview Question

Technical question is designing a function , not difficult.