The correct option is B If the total charge inside the surface is specified
We should know the total charge inside. There is no contribution in the flux due to outside charges.
Also, we should know both magnitude and direction of electric field at any point on the surface.