A Discrete GrĂ¼ss Type Inequality and Applications for the Moments of Random Variables and Guessing Mappings