This is a story from the Murders in the Rue Morgue (The Dupin Stories) collection.
Auguste Dupin, investigator extraordinaire, was the remarkable creation of Edgar Allan Poe. Written in the 1840s, Poe presented the acutely observant, shrewd but idiosyncratic character who, with his chronicler, provided the inspiration for the more famous Sherlock Holmes and Dr. Watson.The Dupin Stories include the following:
"The Murders in the Rue Morgue" "The Mystery of Marie Roget" "The Purloined Letter"