Characterization of Riemann Integrable Functions