1 Answer
1

The surface $\mathrm{S}$ does indeed contain charge $q_1$, and so will have nonvanishing electric flux. However, $\mathrm{S}$ does not contain charges $q_2$ and $q_3$, so it will have zero total flux due to those charges.