Fix Your Photo’s Exposure Problems in Seconds With This Simple Trick

I love those posts that show little tricks that I can use fixing up photographs.
Lifehacker has this neat tip and some commenters have added a couple more under the article.

You can perform this trick with just about any image editor you like (so
long as it supports layers, is able to invert the image, and offers the
Overlay blending mode).