Grant Street Group interview question

After a long, complex setup, what a function to ....