A GrĂ¼ss Type Discrete Inequality in Inner Product Spaces and Applications