Sherlock and Pairs complete solution