Analysis of a Generalized Sharma-Tasso-Olver Equation with Variable Coefficients