update CTCI question 11.3