Amadeus Interview Question

Mainly C++ and some algorithms.