CTCI Chap17 done