Inverted detective story
An inverted detective story, occasionally known as a "reverse whodunnit" or "howcatchem", is a crime fiction structure in which the commission of the crime is shown or described at the beginning, usually including the identity of the perpetrator. The story then describes the detective's attempt to solve the mystery.