Answer
Charge $q_1$
Work Step by Step
We know that according to Gauss's law, the electric flux through a closed surface depends on the charge enclosed by the surface. Thus, the electric flux depends on charge $q_1$ only. Charge $q_2$, which is outside the surface, has no effect on the total electric flux.