C++ Code to Hitchhikers Guide Solutions