In this case, first you calculate the flux through cube, it would be sum of flux through the one surface and flux through the rest. Flux through the cube wil be q/8Ç,= 3xFlux through one wall + Flux through remaining i.e.Through one surface q/3Ç – q/(8Ç)/3 = 7q/24Ç .. Good Luck..............