Group Theoretical Characterization of Wave Equations