"Whodunit" is a term used to refer to a mystery story or movie where the main focus is on solving a crime, usually a murder. The word is a combination of "who" and "done it," implying that the main question in such stories is determining the person responsible for the crime.
Full definition