CTCI 17.12 two sum