cpp solutions