Consider a square conducting pipe. The length L is much larger than the dimension of the cross section, which is a square of size a x a. The walls are insulated from each other. Two opposite walls are grounded and the other two are held at potential V0. By taking origin of your coordinate system as the center of the pipe, nd the electric potential function inside the pipe.