Solve #8 PB