This brain teaser teaches an important lesson on how to be a better investor.