Sherlock Holmes thinks through a problem in "The Man with the Twisted Lip", which appeared in The Strand Magazine in December 1891