sherlock problem