solve prob-4 ybh