Problem solutions by Ted Yang.