Word Problem On Algebraic Expressions