Problem 1.3 from CTCI