The smash hit was written while its author was hanging out in a flat in London, trying to escape from frustrating legal proceedings.