Moody's Interview Question

some C++ questions