detective

A person who solves crimes by finding and studying clues.