Text this: Exact solution of a quantum integrable system associated with the G2 exceptional Lie algebra