Add solution to sherlock-and-pairs.