Add solutions and unit tests for chapter 6: Brain Teasers