The iconic anthem that was written as a joke went on to become singer-songwriter’s signature hit.