Programming Pearls Solutions