Answer
Student 1 is correct .
Work Step by Step
Student 1 is correct as flux passing through a surface depends on the charge enclosed by the surface. Also , $\phi=E.dA$, where $E$ is electric field and $dA$ is surface area.
So, flux depends on both electric field and surface area. As, in case of surface A its surface area is small but its electric field is large while in case of B its surface area is large but its electric field is small. $\phi=\frac{q}{\epsilon_{0}}$ and as they both have same charge the flux through them is same.