Whenever you're ready, walk me through how you'd approach this.
What is a functor in C++, and when would you use one?