cpp solutions to creating coding interview