As the sphere has conducting layers, charge -q is induced on the inner surface of the sphere q and consequently charge + q is induced on the outer layer as the sphere as a whole is uncharged.

Hence, the potential at O is given by,

It should be noticed that the potential can be found in such a simple way only at O, since all the induced charges are at the same distance from this point, and their distribution, (which is unknown to us), does not play any role.