What is the meaning of Whodunit?

A novel or drama concerning a crime (usually a murder) in which a detective follows clues to determine the perpetrator.

Source: wiktionary.org