CPP solutions to Creaking Coding Interview (Reference, not original)