Fekete–Szegö problem for a general subclass of analytic functions