Characterization of compact quantum group