According to Gauss's law, the electric flux through a closed surface is equal to ε01 times the net charge enclosed by the surface. Since, q is the charge enclosed by the surface, then the electric flux ϕ=ε0q
If charge q is placed at a comer of cube, it will be divided into 8 such cubes. Therefore, electric flux through the cube is ϕ′=81(ε0q)