Heavy quark potential as a function of shear viscosity at strong coupling