This question already has an answer here:
One of my friends loves puzzles-jigsaw, logic, pretty much anything. He is also addicted to reading murder mysteries and tries to figure out who killed the guy. Basically, he enjoys working things out with his own brain. What word can I use to describe him?