The curves function in Photoshop is often useful for images suffering from under or overexposed areas. For an image like the this, adjusting the curves as shown can offer some improvement;
However, if the over exposed regions are almost pure white or the under exposed regions almost pure black, no amount of image manipulation is going to give satisfactory results and the image is probably best binned.
When I'm out and about with my camera, I normally take one of two approaches, either leave it on auto mode (which with my camera often gives quite poor results) or use either shutter speed or exposure time priority modes with auto-bracketing. By using auto-bracketing, hopefully, one out of the three images will be OK!