Jefferies Interview Question

Basic SQL, C++