An Introduction to the Theory of Functional Equations and Inequalities