Citadel Interview Question

Optimize a function for concurrency