On a crime scene, there are many pieces of evidence that point to a particular person having the murder weapon and motive to kill poor old Tom (although not poor at all).
Create a function that takes phrases/words as clues and forms a sentence formatted to have the murder's name, verb, "Tom as", Reason.
| Sn | Weapon | Verb to be used | Reason |
|---|---|---|---|
| 1 | Poison | Poisoned | Only X could have such high-grade poison. |
| 2 | Knife | Butchered | Only X was in the kitchen. |
| 3 | Bat | Swatted | Only X is a baseball player. |
| 4 | Gun | Shot | Only X had a gun. |
| 5 | Briefcase | Smacked | Only X was after Tom's money. |
sherlock("Mr.Red", "Knife") ➞ "Mr. Red butchered Tom as only he was in the kitchen."
sherlock("Ms.Blue", "Poison") ➞ "Ms. Blue poisoned Tom as only she could have such high-grade poison."
sherlock("Mr.Red", "Bat") ➞ "Mr. Red swatted Tom as only he was a baseball player."