Blackbaud Interview Question

A Leetcode/Hackerrank easy question.